#include<stdlib.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<unistd.h>
#include<string.h>


int strchn(char *s,char ch ){
    // printf(" begin strchn \n");
    
    return strchr(s,ch) - s ;
}

int main(int argc,char **argv){

    char abc[] = "HelloWorld";
    char ch = 'W';
    printf("this num = %d\n",strchn(abc,ch));
    printf(" %d \n",strchn(abc,ch));
    
    fflush(NULL);
   return 0;
}